<%@ taglib prefix="s" uri="/struts-tags" %>
<%@ taglib prefix="sd" uri="/struts-dojo-tags" %>

<html>
<s:set name="webFramework" value="#session['USERROLE']"/>
	<head><sd:head/>
	<title></title>
		<link href="form.css" type="text/css" rel="stylesheet">
		<link href="style.css" type="text/css" rel="stylesheet">
		<script type="text/javascript" src="stmenu.js"></script>
	</head>
	<body>
		<div class="bodybox">
		<div class="headerbar_top"> You are logged in as ${currentUserDetails.name} dsfghsdfb!</div>
		<div class="header">
		</div>

		<div class="wrapper">
		<div class="navigation">
		<a href="http://www.dhtml-menu-builder.com"  style="display:none;visibility:hidden;">Navigation Menu</a>
		<s:if test="%{#webFramework=='Operator'}">
			<script type="text/javascript" src="operator.js"></script>
		</s:if>
		<s:if test="%{#webFramework=='Authorizer'}">
			<script type="text/javascript" src="authorizer.js"></script>
		</s:if>
		
		  <p>&nbsp;</p>
  <p>&nbsp;</p>
  <p>&nbsp;</p>
  <p>&nbsp;</p>
  <p>&nbsp;</p>
  <p>&nbsp;</p>
  <p>&nbsp;</p>
  <p>&nbsp;</p>
  <p>&nbsp;</p>
  <p>&nbsp;</p>
  <p>&nbsp;</p>
  <p>&nbsp;</p>
  <p>&nbsp;</p>
  <p>&nbsp;</p>
  <p>&nbsp;</p>
  <p>&nbsp;</p>
  <p>&nbsp;</p>
  <p>&nbsp;</p>
  <p>&nbsp;</p>
  <p>&nbsp;</p>
  <p>&nbsp;</p>
  <p>&nbsp;</p>
  <p>&nbsp;</p>
		</div>	
		<!-- navigation end-->
		<div class="content">
			<h4>Approve Transaction</h4>
			<s:form action="saveApproveTrx" method="POST" theme="simple">
			
				<table>
				<tr>		
					<td class="right"><label for="locId">Form ID</label></td>
					<td class="left">&nbsp;</td>		    
				    <td align="left"><s:textfield readonly="true" id="formId" name="formId" tabindex="1"/></td>
				</tr>
				
				<tr>		
					<td class="right"><label for="locId">Location Code</label></td>
					<td class="left">&nbsp;</td>
					<td class="left"><s:textfield  readonly="true" name="locName" tabindex="2"/></td>
				</tr>
			 	<tr>
					<td class="right"><label for="amount">Amount</label></td>
					<td class="left">&nbsp;</td>
					<td class="left"><s:textfield id="amountId" readonly="true"  name="amount" tabindex="3"/> 
					</td>
				</tr>				
				<tr>
					<td class="right"><label for="reason">Reason</label></td>
					<td class="left">&nbsp;</td>
					<td class="left">
						<s:textfield name="reason" tabindex="3" readonly="true"/> 
					</td>
				 </tr>  
				 <tr>
					 <td class="right"><label for="itemPurchased">Item Purchased</label></td>
				    <td class="left">&nbsp;</td>
				    <td class="left"><s:textfield id="itemId" name="itemName" tabindex="5" readonly="true"/></td>
				</tr>
				<tr>
					<td class="right"><label for="trnsDate">Transaction Date</label></td>
					<td class="left">&nbsp;</td>
					<td class="left">
						<s:textfield name="txDate" tabindex="6" readonly="true"/>  
					</td>				 
				</tr>
				<tr>
				 	<td class="right"><label for="rtrnDate">Return Date</label></td>
					<td class="left">&nbsp;</td>
					<td class="left">
						<s:textfield name="retDate" tabindex="6" readonly="true"/> 
					</td>				   
				</tr>
				<tr>
					<td class="right"><label for="intrstAmount">Interest Amount</label></td>
					<td class="left">&nbsp;</td>
					<td class="left">
						<s:textfield readonly="true" name="interestAmount" tabindex="8"/> 
					</td>
				</tr>
				<tr>
				 	<td class="right"><label for="narration">Narration</label></td>
					<td class="left">&nbsp;</td>
					<td class="left">
						<s:textarea readonly="true" name="narration" tabindex="10"></s:textarea> 
					</td>
				</tr>
				<tr>
					<td class="right"><label for="trnsType">Transaction Type</label></td>
					<td class="left">&nbsp;</td>
					<td class="left">
			   			<s:radio disabled="true" name="txTye" list="#{'Debit':'Debit','Credit':'Credit'}"  tabindex="11"/> 
					</td>				 
				</tr>
				<tr>
				 	<td class="right"><label for="modeOfPayment">Mode Of Payment</label></td>
					<td class="left">&nbsp;</td>
					<td class="left">
						<s:textfield name="mode" tabindex="12" readonly="true"/>						
					</td>
				</tr>					
				<tr>
				    <td>&nbsp;</td>
				    <td>&nbsp;</td>
				    <td>&nbsp;</td>
				</tr>
				<tr>
					<td>&nbsp;</td>
					<td>&nbsp;</td>
				    <td align="left">
						<s:submit value="Approve" action="saveApproveTrx" onclick="return approveTrx();"/>
						<s:submit value="Cancel" action="appTrxPage"/>
					
				  </tr>
				</table>
		</s:form>
</div>
<!-- content end-->
</div> 
<!-- wrapper end-->
<div class="bottom_strip"></div>
<div class="headerbar_bottom">
&copy; Copyright 2011. Dera Sacha Sauda, Sirsa-125055 (Haryana)
<br />
Designed By: DSS IT WING</div>
</div>
	<script type="text/javascript">
	function approveTrx(){
		return confirm("Do you really want approve the transaction entry?")
		//return false;
	}
</script>

</body>
</html>
